package com.zwps.biz.api.model.dto.dict;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import com.zwps.common.api.validator.IntOption;

/**
 * @author shanwen
 * @description:
 * @date 2023-09-05
 * @ClassName AddDictDTO
 */
@Schema(description = "新增字典")
@Getter
@Setter
@ToString
public class AddDictDTO {

    /**
     * 字典名称
     */
    @Schema(description = "字典名称")
    @NotBlank
    private String dictName;

    /**
     * 字典编码
     */
    @Schema(description = "字典编码")
    @NotBlank
    private String dictCode;


//    /**
//     * 树编码
//     */
//    @Schema(description = "树编码")
//    private String treeCode;


    /**
     * 上级id
     */
    @Schema(description = "上级id")
    private String parentId;


    /**
     * 字典排序
     */
    @Schema(description = "字典排序")
    private Integer displaySort;


    /**
     * 字典类型（1：系统|2：自定义）
     */
    @Schema(description = "字典类型（1：系统|2：自定义）")
    @IntOption({1,2})
    @NotNull
    private Integer dictType;
}
